#ifndef MAINAPPLICATION_H
#define MAINAPPLICATION_H
class SecondWidget;
class MainApplication
{
private:
    MainApplication();
    ~MainApplication();
    SecondWidget *w = nullptr;
public:
    static MainApplication *getInstance();

    static MainApplication *mInstance;
public:
    struct Destory {
        ~Destory() {
            if (mInstance != nullptr) {
                delete mInstance;
            }
        }
        static Destory mDestory;
    };
};
MainApplication::Destory MainApplication::Destory::mDestory;
#endif // MAINAPPLICATION_H
